import request from '@/utils/request.js'

export const login = (params) => {
  return request({
    url: '/user/login',
    method: 'GET',
    params
  })
}

export const inspectionComplete = (data) => {
  return request({
    url: '/inspection/complete',
    method: 'POST',
    data
  })
}

export const inspectionUploadPhoto = (data) => {
  return request({
    url: '/inspection/upload_photo',
    method: 'POST',
    data
  })
}

export const getDeviceInfo = (params) => {
  return request({
    url: '/device/action',
    method: 'GET',
    params
  })
}

export const getUserTasks = () => {
  return request({
    url: '/user/user_tasks',
    method: 'GET'
  })
}
